/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package objetosNegocio;

import enums.EnumUser;

/**
 *
 * @author QUINTERO
 */
public class User {
    
    protected int id;
    protected String firstName;
    protected String secondName;
    protected String email;
    protected String address;
    protected String cityHall;
    protected City city;
    protected String phone;
    protected String type;
    protected int status;

    public User() {
    }

    public User(int id) {
        this.id = id;
    }

    public User(int id, String firstName, String secondName, String email, String address, String cityHall, City city, String phone, String type, int status) {
        this.id = id;
        this.firstName = firstName;
        this.secondName = secondName;
        this.email = email;
        this.address = address;
        this.cityHall = cityHall;
        this.city = city;
        this.phone = phone;
        this.type = type;
        this.status = status;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    public String getCityHall() {
        return cityHall;
    }

    public void setCityHall(String cityHall) {
        this.cityHall = cityHall;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSecondName() {
        return secondName;
    }

    public void setSecondName(String secondName) {
        this.secondName = secondName;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final User other = (User) obj;
        if (this.id != other.id) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 83 * hash + this.id;
        return hash;
    }

    @Override
    public String toString() {
        return "User{" + "id=" + id + ", firstName=" + firstName + ", secondName=" + secondName + ", email=" + email + ", address=" + address + ", cityHall=" + cityHall + ", city=" + city + ", type=" + type + ", status=" + status + '}';
    }
    
}
